package org.quartz.impl.jdbcjobstore;

import java.sql.Connection;

public interface Semaphore {

    boolean obtainLock(Connection conn, String lockName) throws LockException;

    void releaseLock(Connection conn, String lockName) throws LockException;

    boolean isLockOwner(Connection conn, String lockName) throws LockException;

    boolean requiresConnection();
}
